n=eval(input())
count=0
for i in range(n//5,0,-1):
    for j in range((n-5)//2,0,-1):
        for z in range((n-7)//1,0,-1):
            if i*5+j*2+z==n:
                print("fen5:%d, fen2:%d, fen1:%d, total:%d"%(i,j,z,i+j+z))
                count+=1
print("count =",count)